<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>开发环境重定向</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
            background: #f5f5f5;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .btn {
            background: #007bff;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            display: inline-block;
            margin: 10px;
        }
        .btn:hover {
            background: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>🔄 开发环境热部署检测</h2>
        <p>检测到您可能是通过热部署访问此页面。</p>
        <p>这是正常现象，请选择以下操作：</p>
        
        <a href="http://localhost:3000" class="btn">
            🏠 前往前端页面
        </a>
        
        <a href="/sa-token/login.html" class="btn">
            🔐 重新登录
        </a>
        
        <script>
            // 3秒后自动跳转到前端
            setTimeout(() => {
                window.location.href = 'http://localhost:3000';
            }, 3000);
            
            // 显示倒计时
            let countdown = 3;
            const timer = setInterval(() => {
                document.title = `${countdown}秒后自动跳转...`;
                countdown--;
                if (countdown < 0) {
                    clearInterval(timer);
                }
            }, 1000);
        </script>
    </div>
</body>
</html>
